#include "ch32x035.h"
#include "stdint.h"
#include "stdio.h"
#include "string.h"

#include "DriverPD.h"

#include "microConfig.h"
#include "taskPD.h"


/* PD任务句柄 */
MrTaskType *g_TaskPDHand = NULL;


void vTaskPD(uint32_t uiParameters)
{
    int64_t lTickLast = lMrTickGet();

    cPdInit();

    while(1)
    {
        /* USB PD 内核 */
        cPdPoll();

        vMrDelayMs(&lTickLast, 5);
    }
}
